# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-base/kde-meta/kde-meta-3.5.8.ebuild,v 1.1 2007/10/19 22:09:58 philantrop Exp $

DESCRIPTION="MythTV System Bundle"
HOMEPAGE="http://www.mythtv.org/"

LICENSE="GPL-2"
KEYWORDS="x86"
SLOT="0"
IUSE="dvd browser archive flix gallery game music news phone video web controls lirc"
#weather movies"

PLUGIN_VERSION="0.20.2_p14282"
MYTHTV_VERSION="0.20.2_p15477"

RDEPEND="
>=x11-apps/xset-1.0.2
>=x11-apps/xsetroot-1.0.1
>=media-tv/mythtv-$MYTHTV_VERSION
>=x11-themes/mythtv-themes-$PLUGIN_VERSION
dvd? ( >=media-plugins/mythdvd-$PLUGIN_VERSION )
browser? ( >=media-plugins/mythbrowser-$PLUGIN_VERSION )
archive? ( >=media-plugins/mytharchive-$PLUGIN_VERSION )
flix? ( >=media-plugins/mythflix-$PLUGIN_VERSION )
gallery? ( >=media-plugins/mythgallery-$PLUGIN_VERSION )
game? ( >=media-plugins/mythgame-$PLUGIN_VERSION )
music? ( >=media-plugins/mythmusic-$PLUGIN_VERSION )
news? ( >=media-plugins/mythnews-$PLUGIN_VERSION )
phone? ( >=media-plugins/mythphone-$PLUGIN_VERSION )
video? ( >=media-plugins/mythvideo-$PLUGIN_VERSION )
web? ( >=www-apps/mythweb-$PLUGIN_VERSION )
controls? ( >=media-plugins/mythcontrols-$PLUGIN_VERSION )
lirc? ( >=app-misc/lirc-0.8.2-r2 )
"

# Once they are marked as stable upstream
#weather? ( >=media-plugins/mythweather-0.21_pre14485 )
#movies? ( >=media-plugins/mythmovies-0.21_pre14320 )

src_install() {
	MY_PV=${PV%-r*}
	newinitd ${FILESDIR}/mythtvservice-${MY_PV}.sh mythfrontend
	newconfd ${FILESDIR}/mythtvsystem-${MY_PV}.conf mythtvsystem
	newbin ${FILESDIR}/mythtvsystem-${MY_PV}.sh mythtvsystem
}
